package com.example.gty.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "ROLE_PREMISSION")
public class RolePremission {
    @Id
    @Column(name = "ROLE")
    private String role;

    @Column(name = "PREMISSION")
    private String premission;

    /**
     * @return ROLE
     */
    public String getRole() {
        return role;
    }

    /**
     * @param role
     */
    public void setRole(String role) {
        this.role = role;
    }

    /**
     * @return PREMISSION
     */
    public String getPremission() {
        return premission;
    }

    /**
     * @param premission
     */
    public void setPremission(String premission) {
        this.premission = premission;
    }
}